package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zzy
 * @since 2024-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Room对象", description="")
public class Room extends Model<Room> {

    private static final long serialVersionUID = 1L;

            @ApiModelProperty(value = "房间ID")
    @TableId(value = "ID",type = IdType.AUTO)
    private Long id;

            @ApiModelProperty(value = "房间名称")
    private String name;

            @ApiModelProperty(value = "所属楼栋ID")
    private Long building;

            @ApiModelProperty(value = "楼层")
    private Integer floor;

            @ApiModelProperty(value = "逻辑删除")
            @TableLogic
    private Integer isDeleted;

            @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdTime;

            @ApiModelProperty(value = "修改时间")
    private LocalDateTime modifyTime;
            @ApiModelProperty(value = "房间所在楼层位置")
    private Integer position;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
